<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>css样式表</title>
		<!--外部引用-->
		<link rel="stylesheet" type="text/css" href="css/base.css"/>
		
		<style type="text/css">
			/*内部引用*/
			/*标签选择器*/
			tr{
				background-color: beige;
				font-family: "微软雅黑";
			}
			
			/*类选择器*/
			.mystyle{
				background-color: chocolate;
				font-family: "楷体";
			}
			/*id选择器*/
			#education{
				background-color: darkgreen;
				font-family: "宋体";
			}
		</style>
		
		
		
		
		
	</head>
	<body>
		<form action="#" method="get"> <!--post-->
			<table width="340" border="1" cellpadding="1" cellspacing="0">
				<tbody >
				<tr><td class="mystyle">姓名：</td>
					<td><input type="text" id="name" name="name" maxlength="20"/></td></tr>
				<tr><td>性别：</td><td><input type="radio" id="sex" name="sex"/>男 <input type="radio" id="sex" name="sex"/>女 </td></tr>
			    <tr><td >学历：</td><td><select id="education" name="education">
			    	<option value="junior">专科</option>
			    	<option value="bachelor" selected="selected">本科</option>
			    	<option value="master">硕士</option>
			    	<option value="doctor">博士</option>
			    </select> </td></tr>
			   
			    <tr><td>出生日期：</td><td><input type="date" checked /></td></tr>
			    <tr><td>密码：</td><td><input type="password" id="psw" name="psw" maxlength="18"/></td></tr>
			    <tr><td>上传文件：</td><td><input type="file" id="fl" name="fl" /></td></tr>
			    <tr><td>爱好：</td><td><input type="checkbox" id="cb" name="cb" />游泳 
			    	<input type="checkbox" name="cb"/>游戏
			        <input type="checkbox" name="cb"/>篮球
			        <input type="checkbox" name="cb"/>读书
			    </td> 
			    </tr>
			    
			    <tr><td>备注：</td><td><textarea name="ta" rows="2" cols="25"></textarea></td></tr>
			    <tr><td colspan="2"><input type="submit" name="sbm" value="注册"/> <input type="reset" name="rs"/> <input type="hidden" value="隐藏内容"/></td></tr>
			  </tbody>
			</table>
			
		</form>
	</body>
</html>
